import {
  DIC
} from '@/const/dic'
export const option = {
  index:true,
  indexLabel:'序号',
  border: true,
  selection: false,
  menuBtn: true,
  addBtn:false,
  cellBtn: false,
  editBtn: false,
  delBtn: false,
  columnBtn: false,
  refreshBtn:false,
  dicData: DIC,
  size: 'mini',
  align: "center",
  menuWidth: 350,
  menuAlign: "center",
  column: [{
      label: "报停类型",
      prop: "troubleStatus",
      dicData:DIC.TROULBE_STATUS,
  },{
      label: "设别类别",
      prop: "equipmentTypeId",
  },{
      label: "设备编码",
      prop: "coded",
  },{
      label: "设备名称",
      prop: "name",
  },{
      label: "型号",
      prop: "marking",
  },{
      label: "品牌",
      prop: "brand",
  },{
      label: "存放位置",
      prop: "location",
      dicData: DIC.STORAGE_LOCATION,
  },{
      label: "最近修改人",
      prop: "updateUserName",
  },{
      label: "时间",
      prop: "updateTime",
      width: 150,
  }]
};
export const optionAdd = {
    index:true,
    size: 'mini',
    indexLabel:'序号',
    border: true,
    selection: true,
    menuBtn: true,
    addBtn:false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    align: "center",
    menuWidth: 110,
    menuAlign: "center",
    columnBtn: false,
    refreshBtn:false,
    column: [{
        label: "审批单号",
        prop: "name",
        width: "110",
    },{
        label: "审批状态",
        prop: "name",
        width: "110",
    },{
        label: "预约时间",
        prop: "name",
        width: "110",
    },{
        label: "设备类别",
        prop: "name",
        width: "110",
    },{
        label: "设备编码",
        prop: "sbno",
        width: "110",
    },{
        label: "设备名称",
        prop: "sbname",
        width: "110",
    },{
        label: "型号",
        prop: "sbxh",
        width: "110",
    },{
        label: "品牌",
        prop: "品牌",
        width: "110",
    },{
        label: "实验室",
        prop: "实验室",
        width: "110",
    },{
        label: "预约部门/人",
        prop: "预约部门",
        width: "110",
    },{
        label: "申请时间",
        prop: "date",
        width: "110",
    }
    ]
};

export const optionSelect = {
    index: true,
    size: 'mini',
    indexLabel:'序号',
    border: true,
    selection: true,
    addBtn: false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    searchBtn: true,
    dicData: DIC,
    align: "center",
    menu: false,
    menuWidth: 80,
    menuAlign: "center",
    columnBtn: false,
    refreshBtn: false,
    column: [{
        label: "审批单号",
        prop: "name",
        width: "110",
    },{
        label: "审批状态",
        prop: "name",
        width: "110",
    },{
        label: "预约时间",
        prop: "name",
        width: "110",
    },{
        label: "设备类别",
        prop: "name",
        width: "110",
    },{
        label: "设备编码",
        prop: "sbno",
        width: "110",
    },{
        label: "设备名称",
        prop: "sbname",
        width: "110",
    },{
        label: "型号",
        prop: "sbxh",
        width: "110",
    },{
        label: "品牌",
        prop: "品牌",
        width: "110",
    },{
        label: "实验室",
        prop: "实验室",
        width: "110",
    },{
        label: "预约部门/人",
        prop: "预约部门",
        width: "110",
    },{
        label: "申请时间",
        prop: "date",
        width: "110",
    }
    ]
};

export const tableOptionModeSelectRLDateFormRules = {
    beginDate: [
        {type: 'date', required: true, message: '请输入开始时间', trigger: 'change'},
    ],
    endDate: [
        {type: 'date', required: true, message: '请选择开始时间', trigger: 'change'},
    ],
    beginTime: [
        {required: true, message: '请输入结束时间', trigger: 'change'},
    ],
    endTime: [
        {required: true, message: '请选择结束时间', trigger: 'change'},
    ],
}

export const tableOptionModeAddFormRules = {
    remarks: [
        {required: true, message: '请输入备注', trigger: 'blur'},
        { max: 50, message: '输入的长度请在 50 个字符', trigger: 'blur'}
    ],
}